package by.jabbby.dataprovider;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

public class ApplicationPreference {
	
	public static boolean isAutoConnect(Context context){
		SharedPreferences preferences= PreferenceManager.getDefaultSharedPreferences(context);
		
		Boolean result = preferences.getBoolean("st_app_autoconnect", false);
		return result;
	//	return true;
	}
	
	public static boolean isAutoReconnect(Context context){
        SharedPreferences preferences= PreferenceManager.getDefaultSharedPreferences(context);
		
		Boolean result = preferences.getBoolean("st_app_autoreconnect", false);
		return result;
		
	}

}
